//
//  MyButtonView.m
//  hai游～
//
//  Created by jakf_17 on 15/5/22.
//  Copyright (c) 2015年 jakf_17. All rights reserved.
//

#import "MyButtonView.h"

@implementation MyButtonView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createMyLabel];
    }
    return self;
}
- (void)createMyLabel
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.height - 20, self.frame.size.width, 20)];
    _label.textColor = [UIColor clearColor];
    _label.textColor = [UIColor whiteColor];
    _label.textAlignment = NSTextAlignmentCenter;
    _label.font = [UIFont systemFontOfSize:13];
    [self addSubview:_label];
    [_label release];
    self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 5, self.frame.size.width - 40, self.frame.size.height - 30)];
    [self addSubview:_imageView];
    [_imageView release];
}
@end
